#include "gpio.h"

void GpioInit(void)
{
    rcu_periph_clock_enable(RCU_GPIOA);
    rcu_periph_clock_enable(RCU_GPIOB);
    rcu_periph_clock_enable(RCU_GPIOC);
    rcu_periph_clock_enable(RCU_AF);
    gpio_pin_remap_config(GPIO_SWJ_SWDPENABLE_REMAP, ENABLE);

    gpio_init(RUN_LED_PORT, GPIO_MODE_OUT_PP, GPIO_OSPEED_50MHZ, RUN_LED_PIN);
    gpio_bit_reset(RUN_LED_PORT, RUN_LED_PIN);
}